package com.javasm.gg.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.gg.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsDao extends BaseMapper<Goods> {

    List<Goods> listGoodsAndGoodsType(Goods goods);

    List<Goods> listGoods2AndGoodsType(Goods goods);

    int updateGoodsStock(@Param("goodsId") Integer goodsId, @Param("count") Integer count);
}
